package com.gxa.mapper;

import com.gxa.param.MyTableParam;
import com.gxa.pojo.Empl;
import com.gxa.pojo.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author xiejinfeng
 * @create 2021-06-08 20:07
 * @descrip:
 */
public interface roleMapper {

    List<Role> findByEmpId(@Param("emplId") Integer emplId);

    List<Role> findAll();

    List<Role> findAllForList(@Param("param") MyTableParam param);

    void save(@Param("role") Role role);

    void deleteOneById(Integer id);

    void deleteAll(@Param("ids") String[] ids);

    Role findByPk(@Param("id") Integer id);

    void update(@Param("role") Role role);

    void deleteOnByDeptId(Integer id);

    void deleteAllByDeptIds(@Param("ids") String[] ids);
}
